package com.kun.jdktimer;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimerTask;

/**
 * @author fangkun
 * @create 2022-04-15-9:16
 */
public class TestTimerTask extends TimerTask {
    @Override
    public void run() {
        String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
        System.out.println("FangKun--任务执行了！！！" + date);
    }
}
